﻿using System;
using System.Collections;
using Microsoft.MediaCenter.UI;
using System.Collections.Generic;



namespace MusicBrowser.LibraryManagement
{

    public class translate 
    {

        private static object _syncobj = new object();
        private static translate _instance = null;
        public static translate Instance
        {
            get
            {
                if (_instance == null)
                {
                    lock (_syncobj)
                    {
                        if (_instance == null)
                        {
                            _instance = new translate();
                        }
                    }
                }
                return _instance;
            }
        }

        public Config Config
        {
            get
            {
                return Config.Instance;

            }
        }


        public string lang()
        {
            return Config.Lang;
        }

        public string PlayAll()
        {           
            switch (lang())
            {
                case "ge": return "Alle abspielen";
                case "du": return "Alles afspelen";
                case "fr": return "Lire tout";
                default: return "Play all";
            }
        }

        public string AddPlaylist()
        {
            switch (lang())
            {
                case "ge": return "Zur Wiedergabeliste hinzufügen";
                case "du": return "In wachtrij plaatsen";
                case "fr": return "Ajouter à la playlist";
                default: return "Add to queue";
            }
        }

        public string NowPlaying()
        {
            switch (lang())
            {
                case "ge": return "Aktueller Titel";
                case "du": return "Nu afspelen";
                case "fr": return "Lecture en cours";
                default: return "Now playing";
            }
        }

        public string Details()
        {
            switch (lang())
            {
                case "ge": return "Titeldetails";
                case "du": return "Details van nummer";
                case "fr": return "Détails du morceau";
                default: return "Track details";
            }
        }

        public string PlayTrack()
        {
            switch (lang())
            {
                case "ge": return "Titel abspielen";
                case "du": return "Nummer afspelen";
                case "fr": return "Lire le morceau";
                default: return "Play track";
            }
        }

        public  string Del()
        {
            switch (lang())
            {
                case "ge": return "Löschen";
                case "du": return "Verwijderen";
                case "fr": return "Supprimer";
                default: return "Delete";
            }
        }

        public string ConfirmDel()
        {
            switch (lang())
            {
                case "ge": return "Soll die Datei wirklich gelöscht werden?";
                case "du": return "Bestand verwijderen?";
                case "fr": return "Supprimer ce fichier ?";
                default: return "Delete this file ?";
            }
        }

        public  string ByName()
        {
            switch (lang())
            {
                case "ge": return "nach name";
                case "du": return "op naam";
                case "fr": return "par nom";
                default: return "by name";
            }
        }

        public  string ByDate()
        {
            switch (lang())
            {
                case "ge": return "nach datum";
                case "du": return "op datum";
                case "fr": return "par date";
                default: return "by date";
            }
        }

        public string view()
        {
            switch (lang())
            {
                case "ge": return "ansicht";
                case "du": return "weergave";
                case "fr": return "vue";
                default: return "view";
            }
        }

        public string Next()
        {
            switch (lang())
            {
                case "ge": return "Nächster titel";
                case "du": return "Volgende";
                case "fr": return "Suivant";
                default: return "Next";
            }
        }

        public string Previous()
        {
            switch (lang())
            {
                case "ge": return "Vorheriger titel";
                case "du": return "Vorige";
                case "fr": return "Précédent";
                default: return "Previous";
            }
        }

        public string Settings()
        {
            switch (lang())
            {
                case "du": return "Instellingen";
                case "fr": return "Paramètres";
                default: return "Settings";
            }
        }

        public string Save()
        {
            switch (lang())
            {
                case "fr": return "Enregistrer";
                default: return "Save";
            }
        }

        public string GeneralSettings()
        {
            switch (lang())
            {
                case "fr": return "paramètres généraux";
                default: return "General settings";
            }
        }

        public string FolderSettings()
        {
            switch (lang())
            {
                case "fr": return "paramètres de dossiers";
                default: return "Folder settings";
            }
        }

        public string Transparent()
        {
            switch (lang())
            {
                case "fr": return "Utiliser un fond transparent";
                default: return "Use transparent background";
            }
        }

        public string DefaultView()
        {
            switch (lang())
            {
                case "fr": return "Vue par défaut :";
                default: return "Default view:";
            }
        }

        public string DefaultSortOrder()
        {
            switch (lang())
            {
                case "fr": return "Tri par défaut :";
                default: return "Default sort order:";
            }
        }

        public string UseMusic()
        {
            switch (lang())
            {
                case "fr": return "Utiliser le dossier Ma Musique";
                default: return "Use My Music folder";
            }
        }

        public string SaveSettings()
        {
            switch (lang())
            {
                case "fr": return "Enregistrer les paramètres ?";
                default: return "Save settings?";
            }
        }

        public string SelectFolder()
        {
            switch (lang())
            {
                case "fr": return "Veuillez sélectionner un dossier";
                default: return "Please select at least one folder";
            }
        }

        public string Reset()
        {
            switch (lang())
            {
                case "fr": return "Réinitialiser Music Browser";
                default: return "Reset Music Browser settings";
            }
        }
    
    }






}